package cn.kgc.mushroomwebui.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

public class AlipayConfig implements InitializingBean {
//    @Value(value = "${appid}")
//    private String appid;
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String  app_id= "2016101400683365";


//    @Value(value = "${merchantprivatekey}")
//    private String merchantprivatekey;
    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key ="MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCCeuSYdYM9nFzVr0M617eaIAJxAMbdchdVVRITBW+OtHR8sIqhYRiN0T8dbIu6aGItes8whTMg6U6gk5tdUg6hwtZKmzAhlT/B7H9/p9xe0oh3lWV7AkexkVJtECoY/3p9c2zWwZDbMbeppeQYV9WY+THVaM4t3vMMm6oA7ONslb2sj/PP8TjUYaz+VrU9JFlb377JMKFPCr4JFdf3jKjg/d1r9dKb6O20HXtNJqsbgduUi5Sl3pmrhXnKJFHmaT7h9Sp9eEdRFDbRdlLjggGREPi8n9wqKLwJI+yvSMzeGM8MV6nBGFBAp2JxeM7skrRyT3WMQJFU8YXObdRluCt5AgMBAAECggEAfnTUb94UH/YXExIVOkYvLzSuqQ5zrdMRQiZ8qequv8Os0dvXv6f2wBt36/BzS2o3HJTVkNTHRLJY/c+Q19TbUXMfdJcLAsE/VZb7yqDJNy0cDanA/IKtMS8Cj6kG48tWz5a6eTiIR6fbtJOOiPk3jlaVMZutl09oh2OmU9dCYs0nfnEUxSXOG4/AJFy4a1TOrfldMuagjnMciF6m3Xezdv2JASvXeZv3HzZN6PVTmrGtiI9fs6YkGZimjpW2vd11X48/JTzS0Vvr1CaetMPwjiK4TAPeFW3PKB4ctrECIYaFuGlkxeQB+5JKpQkfAJGhEyHHEl6zFL5qvIoEd9VkwQKBgQDSmtbPWYEA/3cANWCI3130lFvcUOGFXI0sh9GyuYzJlVriBcsde6tsL2DPCSILeHguTH/VjWnQlt5DxKHI+awjBAvcAgn2vVXUCG/bQEq5+Xu5JEFgAI/Oeg8o6I1q6OBg0GfQCv+9PSYbT3EfDY02TVHjesGarucSoHiBsAJ1jQKBgQCemsX6iWMpjuyHuGKCbMeP/bNmN5zJai5VTsqvnby8n1qP98Kvr99qWsgyEIL4BGSWZTkQax86ObLFEw0dEh/oNUYHai462iMYQNmCBcZS+2FwWl0OzWFitYr7w7XROJ+hS+rU7Q1vPafZQ8Yu+Desda9zc8Se1bDxbzugcTdknQKBgAH/sjY5lT3bLtfzqbzi0dN2bQDES7+mRzi6+USG+k0Xe8tVXr4i5Fecg4Czh30wYYOe+j+enfh61hUyko6DwBx891fZNRsAZQYkJlugWpU1RvVU4MH2f2boRaiPvHfdSfPhRnr0/8ReBjSQJnSy/jobtcFA8wFy04Kbv0kL0JopAoGAFjEt1np2x4/aBLuF/R3fZoRnH7xUUdJrnUAjGCOIDxR1BYPzV8XSCv2c2XR5/t4OfQS40VVLz0fXfb/Gq/SnRkR+AfeXdGClXHVmecz5DQ9jeOcL8lBGehtQ0R13SUkU/Oq0dwqcQJ5t5/aVumi80YK+A/eE4Xyg/4dC3pY42/kCgYAFhSz6h0wGrgrk95rlXAq28l9jcQvzl/nbfYc1rJPp+uplnpmZGCh0sP28JmtpZz+3QCbJdjF3TCHjrzU7v5FfZgfc626cqOuBDsfHpZvSNl+G0KYyGjbvI9zymyljI+liyGqCgZ08MTlFA8YXt5qSiEf8L9KVLGvyLusy/t6lLA==";

//    @Value(value = "${alipaypublickey}")
//    private String alipaypublickey;
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key ="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAj1vIVxxRdNunfu+zaQJk0/9X3uym88Cla+Itv57FghTvxlZIihWyzywgfqROEusNzA8nHXVpClxLuGH8tHBlSiB8XlxMrzhkgQ9KSMQKdB7Cp1tJ3p5vmhr5z2wHlzD85RCY9b2ep+AQtyzXVAD18fSX2+PzqFNdJ4aTEYXEVf4XIam67tu2zvdyuys5r0GRuiJVv6q1hsbWm68glppw+NkwJvZn5hmhOnZNRYeKn4vvPevKSQEtgZSLvpeT+a2ewU9Gc4fxHN8TGDiet1Z/nM85wt0sZ+Xq9lVRT+P7y4nTI3WMeeFGL8z4zQ5ir4SXXs/kcV/IbuOkjkKATgKGCwIDAQAB";
//    @Value(value = "${notifyurl}")
//    private String notifyurl;
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://3jj352.natappfree.cc/notify_url";

//    @Value(value = "${returnurl}")
//    private String returnurl;
    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost/return_url";

//    @Value(value = "${signtype}")
//    private String signtype;
    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    @Override
    public void afterPropertiesSet() throws Exception {
    }
}
